#ifndef ADD_H
#define ADD_H

#include "myChannel.h"

#include <QMainWindow>
#include <QStandardItemModel>
#include <iostream>

#include <QWebEngineView>
#include <QWebChannel>
#include <QMessageBox>
#include <QJsonObject>
#include <QJsonArray>
#include <QFile>
#include <QLineEdit>
#include <QFormLayout>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QDataStream>
#include <QStandardItemModel>

namespace Ui {
class Add;
}

class Add : public QMainWindow
{
    Q_OBJECT

public:
    explicit Add(QWidget *parent = 0);
    void setCity();
    void setAutoComplete(QJsonObject result);
    void searhInputChanged();
    QString getname();
    QString getaddress();
signals:
    void closeBox();
public slots:
    void savemess();

private:
    Ui::Add *ui;
    myChannel * _myChannel;
    QStandardItemModel * _mItemModel;
};

#endif // ADD_H
